package com.crl.utils
{
	import flash.display.DisplayObjectContainer;

	public class ControlUtil
	{
		public function ControlUtil()
		{
		}
		
		public function clearChildren(container:DisplayObjectContainer):void{
			while(container.numChildren){
				container.removeChildAt(0);
			}
		}
		
		public static function localToLocal(point:Point, firstDisplayObject:DisplayObject, secondDisplayObject:DisplayObject):Point
		{
			point = firstDisplayObject.localToGlobal(point);
			return secondDisplayObject.globalToLocal(point);
		}
		
	}
}